// TBApiContext.h: interface for the CTBApiContext class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TBAPICONTEXT_H__CB68624F_54F2_417A_B61E_2FB0E9DDF4EA__INCLUDED_)
#define AFX_TBAPICONTEXT_H__CB68624F_54F2_417A_B61E_2FB0E9DDF4EA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CTBApiContext  
{
private:
	CString m_strHJURL;
	CString m_appkey;
	CString m_appsecret;
	CString m_strError;
private:
	BOOL Load(CStdioFile* pFile);
	BOOL Save(CStdioFile* pFile);
public:
	CTBApiContext();
	virtual ~CTBApiContext();
public:
	CString GetError();
	BOOL Save(CString strFile);
	BOOL Load(CString strFile);
	void GetApp(CString& sAppkey, CString& sAppsecret);
	CString GetHJURL();
	void SetApp(CString sAppkey, CString sAppsecret);
	void SetHJURL(CString sHJURL);

};

#endif // !defined(AFX_TBAPICONTEXT_H__CB68624F_54F2_417A_B61E_2FB0E9DDF4EA__INCLUDED_)
